
function lazyLoadView (AsyncView) {
   const AsyncHandler = () => ({
    // 需要加载的组件 (应该是一个 `Promise` 对象)
    component: AsyncView,
    // 异步组件加载时使用的组件
  //   loading: require('@/components/public/RouteLoading.vue').default,
    // 加载失败时使用的组件
  //   error: require('@/components/public/RouteError.vue').default,
    // 展示加载时组件的延时时间。默认值是 200 (毫秒)
    delay: 200,
    // 如果提供了超时时间且组件加载也超时了，
    // 则使用加载失败时使用的组件。默认值是：`Infinity`
    timeout: 10000
   });
   return Promise.resolve({
    functional: true,
    render (h, { data, children }) {
     return h(AsyncHandler, data, children);
    }
   });
  }
export default  [
    {
      path: '/',
      name: 'HelloWorld',
      component: () => lazyLoadView(import('@/view/app'))
    },
		{
			path: '/administration',
			name: '1-1',
			component: () => lazyLoadView(import('@/view/administration'))
		},
		{
			path: '/grouping',
			name: '1-2',
			component: () => lazyLoadView(import('@/view/grouping'))
		},
		{
			path: '/template',
			name: '1-3',
			component: () => lazyLoadView(import('@/view/template'))
		},
		{
			path: '/import',
			name: '1-4',
			component: () => lazyLoadView(import('@/view/import'))
		},
		{
			path: '/batch',
			name: '1-5',
			component: () => lazyLoadView(import('@/view/batch'))
		},
		{
			path: '/details',
			name: '1-1-1',
			component: () => lazyLoadView(import('@/view/details'))
    },
    {
			path: '/editor',
			name: '1-1-1',
			component: () => lazyLoadView(import('@/view/editor'))
		},
		{
			path: '/xuanze',
			name: '1-1-1',
			component: () => lazyLoadView(import('@/components/goodsselect'))
		},
		
  ]
